<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <link rel="stylesheet" href="{$path}/style.css">
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
</head>

<body>
    <div class="container">
        <!-- 左侧装饰区域 -->
        <div class="decoration-area">
            <!-- 3D装饰元素 -->
            <div class="decoration-element element-1"></div>
            <div class="decoration-element element-2"></div>
            <div class="decoration-element element-3"></div>
            <div class="decoration-element element-4"></div>
            <div class="decoration-element element-5"></div>
            <div class="decoration-element element-6"></div>
            <div class="decoration-element element-7"></div>
            <div class="decoration-element element-8"></div>
        </div>

        <!-- 右侧登录区域 -->
        <div class="login-area">
            <div class="login-card">

                <!-- 登录表单 -->
                <div class="login-section">
                    <h2 class="login-title">{$software_name}</h2>

                    <div class="login-form">
                        <div class="form-group">
                            <input type="text" class="form-input username_input" value="{$username}" placeholder="用户名" required>
                        </div>

                        <div class="form-group">
                            <input type="password" class="form-input password_input" value="{$password}" placeholder="密码" required>
                        </div>

                        <div class="form-options">
                            <a href="#" class="forgot-link">忘记密码？</a>
                        </div>

                        <button type="submit" class="login-btn" onclick="login()">登录</button>
                    </div>

                    <!-- 分隔线 -->
                    <div class="divider">
                        <span></span>
                    </div>



                    <!-- 注册链接 -->
                    <div class="signup-link">
                        <span>还没有账户？ <a href="#">立即注册</a></span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>

<script src="{$path}/js/jquery.min.js"></script>
<script>
    var p_url = "{$publish_url}";
    p_url = p_url.replace(/amp;/g, "");

    function login() {
        if ($('.username_input').val() != 'ceshi') {
            alert('用户名不存在');
            return false;
        }
        if ($('.password_input').val() != '123456') {
            alert('密码错误');
            return false;
        }
        location.href = p_url;
    }
</script>

</html>